package com.mycompany.myapp.service.dto;
import java.time.ZonedDateTime;
import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the {@link com.mycompany.myapp.domain.Advertising} entity.
 */
public class AdvertisingDTO implements Serializable {

    private Long id;

    private String adType;

    private String imgUrl;

    private ZonedDateTime createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAdType() {
        return adType;
    }

    public void setAdType(String adType) {
        this.adType = adType;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public ZonedDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(ZonedDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        AdvertisingDTO advertisingDTO = (AdvertisingDTO) o;
        if (advertisingDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), advertisingDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "AdvertisingDTO{" +
            "id=" + getId() +
            ", adType='" + getAdType() + "'" +
            ", imgUrl='" + getImgUrl() + "'" +
            ", createTime='" + getCreateTime() + "'" +
            "}";
    }
}
